use file_sys::{block_dev::BlockDevice, file_disk::FileDisk};

#[test]
fn test_block_write_read() {
    let mut disk = FileDisk::new("./disk/image").unwrap();
    disk.write_block(1, &[0xff; 512]);

    let mut buf = [0; 512];
    disk.read_block(1, &mut buf);

    assert_eq!(buf, [0xff; 512]);
}